package com.hanko.repository;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @Author: hanko
 * @Date: 2020.11.26 10:19
 */
@Data
@Builder
@Document(indexName = "person-index")
public class Person {
    private @Id String id;
    @Field(type = FieldType.Text,analyzer = "ik_max_word",fielddata = true)
    private String firstname;
    private String lastname;
}

